import Layout from '@/layout/Index'

const routes = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/Login'),
        meta: {auth: false}
    },
    //公共布局下的路由
    {
        path: '/',
        component: Layout,
        children: [
            {
                path: "",
                redirect: "/login",
                meta: {auth: false}
            },
            {
                path: 'carrier',
                component: () => import('@/views/carrier/info'),
                meta: {auth: true}
            },
            {
                path: 'create',
                component: () => import('@/views/account/createShippingOrder'),
                meta: {auth: true}
            },
            {
                path: 'shippingOrderList',
                component: () => import('@/views/account/myShippingOrder'),
                meta: {auth: true}
            },

        ]
    },

    //登录页


    //初始化


    //404
    {
        path: "*",
        redirect: '/404'
    }

]

export default routes
